﻿using System;

namespace NetTopologySuite.Index.Quadtree
{
	public class IntervalSize
	{
		private IntervalSize()
		{
		}

		public static bool IsZeroWidth(double min, double max)
		{
			double num = max - min;
			if (num == 0.0)
			{
				return true;
			}
			double num2 = System.Math.Max(System.Math.Abs(min), System.Math.Abs(max));
			return DoubleBits.GetExponent(num / num2) <= -50;
		}

		public const int MinBinaryExponent = -50;
	}
}
